<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="0" />
<title>业务范围</title>
<!--  通用情况下 不引入 js css  表单验证  js 放置到页面中 -->
<%-- ui tabs --%>

<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css" rel="stylesheet" />
<script>
	$(document).ready(function() {
		$("#buydate").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				maxDate : '%y-%M-%d',
				dateFmt : 'yyyy-MM-dd'
			});
		});
		$("#correctnear").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				maxDate : '%y-%M-%d',
				dateFmt : 'yyyy-MM-dd'
			});
		});
		$("#colBtn").click(function(){
			window.close();
		});
		
		$("#inputForm").validate({
			rules:{
				name:{
					required:true
				},
				code:{
					required:true,
					remote:"labsequipment!checkCode.action?oldCode="+encodeURI('${code}')
				},
				model:{
					required:true
				},
				brand:{
					required:true
				},
				buydate:{
					required:true
				},
				recorder:{
					required:true
				}
			},
			messages:{
				name:{
					required:"请输入设备名称！",
				},
				code:{
					remote:"该设备编号已存在！"
				}
			}
		});
		
	});
</script>
</head>
<body>
<form action="${ctx}/project/labs/labsscope!save.action" method="post" id="inputForm"
	class='yform'>
	<div id="caption">
<h6>增加验检测业务范围表</h6>
</div>
			<input id="id" name="id" type="hidden" value="${id}" />
			<input type="hidden" name="projectId" value="${projectId}" />
			<input type="hidden" name="deptId" value="${deptId}"/>
			<c:if test="${not empty id }">
			<input type="hidden" name="partId" value="${partId}"/>
			</c:if>
			<c:if test="${empty id }">
			<input type="hidden" name="partId" value="${deptId}"/>
			</c:if>
			<input  type="hidden" name="typeId" value="${typeId}"/>
<table id="contentTable">
	<tr>
		<td>试验检测项目及参数：</td>
		<td><input id="detectitem" name="detectitem" type="text" value="${detectitem}" />
			</td>
		<td>采用的试验检测方法和标准：</td>
		<td>
		<input id="detectmethod" name="detectmethod" type="text" value="${detectmethod}" />
		</td>
	</tr>

	<tr>
		<td>所用主要仪器设备名称：</td>
		<td><input name="equipmentname" type="text" value="${equipmentname }"  id="equipmentname"/></td>
		<td>设备编号：</td>
		<td><input id="equipmentnum" name="equipmentnum" type="text"
			value="${equipmentnum}" /></td>
	</tr>
	<tr>
		<td>主要操作人员:</td>
		<td colspan="3"><input name="operator" type="text" value="${operator}" id="operator"/>
		</td>
	</tr>
	<tr>
		<td>备注：</td>
		<td colspan="3">
			<textarea id="remark" name="remark" >${remark}</textarea></td>
	</tr>
</table>
<div class="type-button">
	<input   type="submit" class="submit" value="提交" />
	<c:if test="${fn:length(param.decorator)==0}">
	<input id="colBtn"  type="button"   value="关闭" class="reset" />
	</c:if>
	</div>
</form>
</body>
</html>
